package com.game.springbootstart.service;

import com.game.springbootstart.entity.Favorites;
import com.baomidou.mybatisplus.extension.service.IService;
import com.game.springbootstart.entity.Games;

import java.util.List;

/**
 * <p>
 * 喜欢表 服务类
 * </p>
 *
 * @author author
 * @since 2025-02-12
 */
public interface IFavoritesService extends IService<Favorites> {

    boolean addFavorite(Long userId, Long gameId);

    List<Games> listBy(Long userId);

    Boolean delete(Long userId, Long gameId);

    List<Long> selectFavorites(Long userId);
}
